﻿<Grid
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:TouchExplorer="clr-namespace:TouchExplorer"
             xmlns:TouchControls="clr-namespace:TouchControls;assembly=TouchControls"
             x:Class="TouchExplorer.CurrentDirectories"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             >
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <TouchControls:TouchListBox x:Name="Folders" 
                Style="{StaticResource VerticalList}"
                BorderThickness="0"
                HorizontalContentAlignment="Stretch"
                ItemsSource="{Binding Directories}" SelectedItem="{Binding SelectedDirectory, Mode=TwoWay}">
        <TouchControls:TouchListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <WrapPanel />
            </ItemsPanelTemplate>
        </TouchControls:TouchListBox.ItemsPanel>
        <TouchControls:TouchListBox.ItemTemplate>
            <DataTemplate>
                <TouchExplorer:TouchDirectoryDisplayTile Background="#EE9C4EB0"/>
            </DataTemplate>
        </TouchControls:TouchListBox.ItemTemplate>
    </TouchControls:TouchListBox>
</Grid>
